package com.yunyao.common.exception;

import com.yunyao.common.web.enums.ResultMsgEnum;

/**
 * @author xingjishuai
 * @date 2024-08-12
 */
public class BusinessException extends RuntimeException {

    private static final long serialVersionUID = -3120812932327014788L;

    public BusinessException(String message) {
        super(message);
    }

    public BusinessException(ResultMsgEnum msgEnum) {
        super(msgEnum.getMessage());
    }

    public BusinessException(String message, Throwable cause) {
        super(message, cause);
    }

}
